package com.scut.campus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.campus.dto.CommentDto;
import com.scut.campus.entity.Comment;
import com.scut.campus.query.CommentQuery;
import com.scut.campus.query.MoreSubCommentPageQuery;
import com.scut.campus.vo.CommentVo;
import com.scut.campus.vo.SubCommentVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentService extends IService<Comment> {
    void insertComment(CommentDto commentDto);

    List<CommentVo> getCommentsByPostId(CommentQuery commentQuery);

    void deleteByPostId(String postId);

    long commentCount(String postId);

    List<SubCommentVo> queryMoreSubcomment(MoreSubCommentPageQuery pageQuery);
}
